package jdbc.way4;


import jdbc.connection.Connection;

public class MysqlConnectionFactory implements ConnectionFactory {
    static {
        ConnectionFactoryManager.register(new MysqlConnectionFactory());
    }

    public Connection createConnection(String url, String username, String password) {
        if (url.startsWith("jdbc:mysql")) {
            return () -> null;
        } else {
            return null;
        }
    }
}
